package com.shr25.robot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 启动类
 *
 * @author huobing
 */
@SpringBootApplication()
public class StartApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication application = new SpringApplication(StartApplication.class);
        application.addListeners(new ApplicationPidFileWriter());
        ConfigurableApplicationContext applicationContext = application.run(args);
    }
}
